use explicit_bzero() to zero memory
authorDebian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>
Fri, 27 Feb 2026 10:11:48 +0000 (13:11 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 27 Feb 2026 10:11:48 +0000 (13:11 +0300)
commit278944831e6b8303c58fe84b01c5c60e77b1dc45
tree4a9f337ec81037c695646fd37d570435c646aa7b
parent1c8292403e3b1e53ca4b68334b6caf162f2991f7
use explicit_bzero() to zero memory

Samba uses memset_s() to zero-fill unused sensitive memory
areas.  This interface is difficult to use right, and is not
implemented in glibc due to this.  So many parts of samba
link to libreplace to get rep_memset_s().  But glibc provides
explicit_bzero(), so there's no need for this linkage.

Unfortunately there are just insane amount of similar
but non-standard functions, and upstream don't want
to stay on something simple and robust in this context.

Gbp-Pq: Name use-explicit_bzero-to-zero-memory.diff
lib/replace/replace.h